//
//  XZ_TestModel.m
//  Project_Demo
//
//  Created by caoxiaozhu on 2018/7/27.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import "XZ_TestModel.h"

@implementation XZ_TestModel

-(instancetype)initWithDictionary:(NSDictionary *)dict{
    if (self=[super init]) {
        self.name = dict[@"name"];
        self.age = dict[@"age"];
        self.sex = dict[@"sex"];
        self.phone = dict[@"phone"];
    }
    return self;
}

+(instancetype)questionWithDictionary:(NSDictionary *)dict{
    return [[self alloc]initWithDictionary:dict];
}

@end
